<template>
  <div class="member-collect-brand-page">
    <!-- 顶部标题 -->
    <div class="xtx-center-head">
      <h4 class="title fl">关注的品牌</h4>
    </div>
    <!-- 关注的品牌 -->
    <div class="xtx-collect-brand" v-loading="loading">
      <ul>
        <li v-for="item in list" :key="item.id">
          <router-link :to="'/brand/'+item.id">
            <div class="head">
              <span class="iconfont icon-dingwei fl"></span>
              <span class="area fl">{{item.productionPlace}}</span>
              <span class="unlike fr" @click.prevent="del(item.id)">取消关注</span>
            </div>
            <div class="logo" style="background-image: url(https://img10.360buyimg.com/seckillcms/s175x75_jfs/t1/140098/34/10906/4351/5f8965b0E32d63299/4861e97020a38325.png!cc_175x75.webp);"></div>
            <p class="name">{{item.name}}</p>
            <p class="desc">{{item.description}}</p>
          </router-link>
        </li>
      </ul>
      <xtx-pagination
        :current-page="reqParams.page"
        :page-size="reqParams.pageSize"
        @current-change="changePage"
        :total="total"
      >
      </xtx-pagination>
    </div>
  </div>
</template>

<script>
import { collectMixin } from './mixins'
export default {
  name: 'member-collect-brand-page',
  mixins: [collectMixin],
  data () {
    return {
      reqParams: {
        collectType: 2
      }
    }
  }
}
</script>

<style scoped lang='less'>
@import "./styles/brand.less";
.member-collect-brand-page{
  position: relative;
}
.skeleton {
  padding: 0 20px;
  .xtx-skeleton {
    margin-top: 20px;
  }
}
</style>
